package com.cml.servicea.controller;

import om.cml.servicea.service.ServiceAI;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ServiceBController implements ServiceAI {
    @Override
    @RequestMapping(value = "/sayHello2/{name}", method = RequestMethod.GET)
    public String sayHello2(@PathVariable("name")String name) {
        return "sayHello2 "+ name;
    }
}
